import type { ReactNode } from "react" import { Badge } from "@/components/ui/badge" import { pretty, safeURL } from "@/lib/api" export function Notice({ children }: { children: ReactNode }) { return
{children}
} export function Empty({ children }: { children: ReactNode }) { return{pretty(value)}
}
export function SourceLink({ url, children }: { url: string; children?: ReactNode }) {
const href = safeURL(url)
return href ? {children || url} : {children || url}
}